<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    const isLogin = localStorage.getItem('isLogin')

    if (isLogin) {
      const userInfo = localStorage.getItem('userInfo')
      const userInfoObj = JSON.parse(userInfo)
      this.$store.commit('user/resetMuts', userInfoObj)
    }
  }
}
</script>
<style>
#id{
  background-color: #ccc;
}
</style>
